<?php if($session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'admin' || $session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'manag'){?>
	
	<li><?php echo $this->Html->link(__('Edit Product', true).'<small>'.__('Edit Product', true).'</small>', 
		array('plugin'=>'store','controller'=>'products','action'=>'view',$product_id),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_back.png)')); ?></li>
		
	<li><?php echo $this->Html->link(__('Gallery', true).'<small>'.__('Gallery', true).'</small>', 
		array('plugin'=>'store','controller'=>'uploads','action'=>'index',$product_id),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_gallery.png)')); ?></li>
		
	<li><?php echo $this->Html->link(__('Add Picture', true).'<small>'.__('Add Picture', true).'</small>', 
		array('plugin'=>'store','controller'=>'uploads','action'=>'add',$product_id),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_add.png)')); ?></li>
	
	<?php if(isset($storeUpload['StoreUpload']['id'])){?>
	<li><?php echo $this->Html->link(__('Edit Picture', true).'<small>'.__('Edit Picture', true).'</small>', 
		array('plugin'=>'store','controller'=>'uploads','action'=>'edit',$storeUpload['StoreUpload']['id']),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_edit.png)')); ?></li>
	
	<li><?php echo $this->Html->link(__('Delete Picture', true).'<small>'.__('Delete Picture', true).'</small>', 
		array('plugin'=>'store','controller'=>'uploads','action'=>'delete',$storeUpload['StoreUpload']['id']),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_delete.png)'), sprintf(__d('store','Are you sure you want to delete # %s?', true), $this->data['StoreUpload']['id'])); ?></li>
	<?php }?>
	
	<?php if(isset($this->data['StoreUpload']['id']) && is_numeric($this->data['StoreUpload']['id'])){?>
	<li><?php echo $this->Html->link(__('View Upload', true).'<small>'.__('View Upload', true).'</small>', 
		array('plugin'=>'store','controller'=>'uploads','action'=>'edit',$this->data['StoreUpload']['id']),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_view.png)')); ?></li>
	
	<li><?php echo $this->Html->link(__('Delete Upload', true).'<small>'.__('Delete Upload', true).'</small>', 
		array('plugin'=>'store','controller'=>'uploads','action'=>'delete',$this->data['StoreUpload']['id']),
		array('escape'=>false,'style'=>'background-image: url(/img/firma/actions_16_delete.png)'), sprintf(__d('store','Are you sure you want to delete # %s?', true), $this->data['StoreUpload']['id'])); ?></li>


	<?php }?>
<?php }?>